package org.wk.user.enums;

/**
 * @author TangShenShen
 * @Description: 反馈处理的状态
 * @date 2018/6/69:35
 */
public enum FeedbackStatus {
    UNPROCESSED("unprocessed","未处理"),
    PROCESSED("processed","已处理");
    private String code;
    private String name;

    public static FeedbackStatus containsCode(String code) {
        for (FeedbackStatus item : FeedbackStatus.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {

        return code;
    }

    public String getName() {
        return name;
    }

    FeedbackStatus(String code, String name) {

        this.code = code;
        this.name = name;
    }
}
